package cn.yoyo.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("t_like")
public class Like {
    @Id
    private String id;
    private String blogId;
    private String userId;

    public Like() {
    }

    public Like(String blogId, String userId) {
        this.blogId = blogId;
        this.userId = userId;
    }

    public Like(String id, String blogId, String userId) {
        this.id = id;
        this.blogId = blogId;
        this.userId = userId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBlogId() {
        return blogId;
    }

    public void setBlogId(String blogId) {
        this.blogId = blogId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Like{" +
                "id='" + id + '\'' +
                ", blogId='" + blogId + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
